package com.share.dubbo.ssm.dao.mysql;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.share.dubbo.ssm.model.mysql.AccessLog;
import com.share.dubbo.ssm.model.mysql.AccessLogExample;
import com.share.dubbo.ssm.model.req.CountByDayResq;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * 使用baomidou 的生产基本sql
 *
 * @author 01401061 - 孙艳强
 * @date 2020/11/26 11:45
 */
public interface AccessLogMapper extends BaseMapper<AccessLog> {
    long countByExample(AccessLogExample example);

    int deleteByExample(AccessLogExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(AccessLog record);

    int insertSelective(AccessLog record);

    List<AccessLog> selectByExample(AccessLogExample example);

    AccessLog selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") AccessLog record, @Param("example") AccessLogExample example);

    int updateByExample(@Param("record") AccessLog record, @Param("example") AccessLogExample example);

    int updateByPrimaryKeySelective(AccessLog record);

    int updateByPrimaryKey(AccessLog record);


    List<CountByDayResq> countByDay(@Param("day") String day);
}
